package com.kisszpy.system.service.impl;

import java.util.List;

import com.kisszpy.core.utils.PageModel;
import com.kisszpy.system.dao.SysUserDao;
import com.kisszpy.system.entity.SysUser;
import com.kisszpy.system.service.SysUserService;

public class SysUserServiceImpl implements SysUserService {

	private SysUserDao dao;
	
	public void setDao(SysUserDao dao) {
		this.dao = dao;
	}

	public SysUser login(SysUser entity) {
		return this.dao.login(entity);
	}
	
	public void save(SysUser entity) {
		this.dao.save(entity);
	}

	public PageModel<SysUser> getAll(int pageNow,int pageSize) {
		return this.dao.getAll(pageNow, pageSize);
	}

}
